#include "Event.h"

static double EventID = 1;
Event::Event(double actionTime, ExtentIO* data): _id(EventID++), _actionTime(actionTime), _endTime(-1), _data(data)
{

}


Event::~Event(void)
{
}
bool Event::operator< (const Event& other)
{
	return _actionTime < other.getActionTime();
}
bool Event::operator<= (const Event& other)
{
	return _actionTime <= other.getActionTime();
}
bool Event::operator> (const Event& other)
{
	return _actionTime > other.getActionTime();
}

bool Event::operator>= (const Event& other)
{
	return _actionTime >= other.getActionTime();
}

bool Event::operator==( const Event& other )
{
	return _actionTime == other.getActionTime();
}

double Event::getActionTime() const
{
	return _actionTime;
}

double Event::getEndTime() const
{
	return _endTime;
}
ExtentIO* Event::getData()
{
	return _data;
}
/*
void Event::setActionTime(double actionTime)
{
	_actionTime = actionTime;
}
*/